package cn.tedu.ymg.admin.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class AdminUpdateInfoParam implements Serializable {

    @NotNull(message = "修改管理员详情失败，必须提交用户名！")
    @ApiModelProperty(value = "用户名",required = true,example = "xxx")
    private String username;

    @NotNull(message = "修改管理员详情失败，必须提交密码！")
    @ApiModelProperty(value = "密码",required = true,example = "xxxxx")
    private String password;
    private String nickname;
    private String avatar;

    @NotNull(message = "修改管理员详情失败，必须提交手机号码！")
    @ApiModelProperty(value = "手机号码",required = true,example = "18888888888")
    private String phone;

    @NotNull(message = "修改管理员详情失败，必须提交邮箱！")
    @ApiModelProperty(value = "邮箱",required = true,example = "xxxxxxx@163.com")
    private String email;
    private String description;
    private Integer enable;
    private Long[] roleIds;
}
